<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>人力资源管理系统</title>

    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrap-table.min.css}">

    <script type="text/javascript" th:src="@{/js/common/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap-table.min.js}"></script>

</head>

<body>

<!-- 页头开始↓-->
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">首页</a>
        </div>

        <ul class="nav navbar-nav">

            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                    人力资源 <span class="caret"></span>
                </a>

                <ul class="dropdown-menu">
                    <li><a href="/account/list">员工列表</a></li>
                </ul>

            </li>
        </ul>

        <ul class="nav navbar-nav">
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                    系统设置 <span class="caret"></span>
                </a>

                <ul class="dropdown-menu">
                    <li><a href="/manager/accountList">账号管理</a></li>
                    <li><a href="/manager/roleList"> 角色管理</a></li>
                    <li><a href="/manager/permissionList">权限管理</a></li>
                </ul>

            </li>
        </ul>

        <form class="navbar-form navbar-left">
            <div class="form-group">
                <input type="text" class="form-control" placeholder="Search">
            </div>
            <button type="submit" class="btn btn-default">搜索</button>
        </form>

        <!-- 已登录用户↓-->
        <ul th:if="${session.account} !=null" class="nav navbar-nav navbar-right">
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">

                    欢迎你 : [[${session.account.nickName}]] <span class="caret"></span> </a>
                <ul class="dropdown-menu">
                    <li><a href="/account/profile">个人信息</a></li>
                    <li><a href="#">Another action</a></li>
                    <li><a href="#">Something else here</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="/account/logOut">退出登录</a></li>
                </ul>
            </li>
        </ul>

        <!--  当前用户未登录 -->
        <ul th:if="${session.account}==null" class="nav navbar-nav navbar-right">
            <li><a href="/account/login">登录</a></li>
        </ul>

    </div>
    </div>
</nav>


<!-- 页头结束↑ -->
<div class="form-container" align="center" style="width: 300px">
    <form action="/account/registerUser" method="post">
        <table class="table table-bordered" >

            <tr>
                <td>用户名：</td>
                <td><input type="loginName" name="loginName"></td>
            </tr>

            <tr>
                <td>密码：</td>
                <td><input type="password" name="password"></td>
            </tr>

            <tr>
                <td>操作：</td>
                <td><input type="submit"/></td>
            </tr>

        </table>
    </form>
</div>

</body>

<style>
    .form-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
</style>
</html>